<?php
include_once('common/header.php');	
if($AppUI->id <= 0 || !isset($_SERVER['HTTP_REFERER'])) {	
	$arrJson = array('error'=>1,'msg'=>$arrError[1]);
	echo $objRequest->getParam('callback') . '(' . Zend_Json::encode($arrJson) . ')';
	exit();
}
$intHexId	  	= $objRequest->getParam('uid',0);
$objFullhouse	= new Fullhouse();
$objVfriendUser	= new Vfriend_User();
$objUser		= $objVfriendUser->getInfoByHexUserId($intHexId);
if($AppUI->id == $objUser->id) {
	$strFriend	= '';
} else {
	$strFriend	= $objVfriendUser->getRelation($AppUI->id);
}
include_once('fullhouse/box-friend.php');
$objView 		= Zend_Registry::get('objView');
$strData		= $objView->fetch('fullhouse/box-friend-item.tpl');
$arrJson 		= array('error'=>0,'msg'=>$strData,'page'=>$intPage,'offset'=>$intOffset,'total'=>$intTotal,'limit'=>$intLimit);
echo $objRequest->getParam('callback') . '(' . Zend_Json::encode($arrJson) . ')';
exit();
?>